<import type='css' file="Setting.Css.user-setting" />
<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<script type="text/javascript">
	window.onload=function(){
	       /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/
		xiuxiu.embedSWF("altContent",5,"100%","100%");
	       //修改为您自己的图片上传接口
		xiuxiu.setUploadURL("http://127.0.0.1{:U('home/Setting/upload')}");
	        xiuxiu.setUploadType(2);
	        xiuxiu.setUploadDataFieldName("upload_file");
		xiuxiu.onInit = function ()
		{
			xiuxiu.loadPhoto("http://127.0.0.1/__ROOT__/{$Think.session.head_img}");
		}	
		xiuxiu.onUploadResponse = function (data)
		{
			
			data = '__ROOT__'+data;

			AWS.alert('您的头像上传成功');
	
			$('#head_img').attr({
				src: data});
		}
	}
</script>
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="aw-user-setting">
					<div class="tabbable">
						<ul class="nav nav-tabs aw-nav-tabs active">
							<li><a href="{:U('Home/Setting/verify/')}">申请认证</a></li>
							<li><a href="{:U('Home/Setting/security/')}">安全设置</a></li>
							<li class="active"><a href="{:U('Home/Setting/upload/')}">头像上传</a></li>
							<li><a href="{:U('Home/Setting/people/')}">基本资料</a></li>
							
							<h2><i class="icon icon-setting"></i> 用户设置</h2>
						</ul>
					</div>	
					<div style="height:450px;" class="tab-content clearfix">
						<div id="altContent">
							
						</div>
					</div>				
				</div>
			</div>
		</div>
	</div>
</div>